package com.dfrz.ch10;

import java.util.Date;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 10:56
 * 描述:
 */
public class Manager extends Employee {


    public String department;

    public Manager() {
    }

    public Manager(String department) {
        this.department = department;
    }

    public Manager(String name, double salary, Date birtDate, String department) {
        super(name, salary, birtDate);
        this.department = department;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public String getDetails(){
      return "名字"+this.name+" 管理部门"+this.department;
    }
}
